package com.thinkcube.edutainment.domain.data;

import android.os.Parcel;
import android.os.Parcelable;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonProperty;

@JsonIgnoreProperties(ignoreUnknown = true)
public class DateData implements Parcelable {
	@JsonProperty("date")
	String date;

	@JsonProperty("timezone_type")
	String timezoneType;

	@JsonProperty("timezone")
	String timezone;

	public String getDate() {
		return this.date;
	}

	public void setDate(String date) {
		this.date = date;
	}

	public String getTimezoneType() {
		return this.timezoneType;
	}

	public void setTimezoneType(String timezoneType) {
		this.timezoneType = timezoneType;
	}

	public String getTimezone() {
		return this.timezone;
	}

	public void setTimezone(String timezone) {
		this.timezone = timezone;
	}

	protected DateData(Parcel in) {
		date = in.readString();
		timezoneType = in.readString();
		timezone = in.readString();
	}

	public DateData() {
	}

	public int describeContents() {
		return 0;
	}

	public void writeToParcel(Parcel dest, int flags) {
		dest.writeString(date);
		dest.writeString(timezoneType);
		dest.writeString(timezone);
	}

	public static final Parcelable.Creator<DateData> CREATOR = new Parcelable.Creator<DateData>() {
		public DateData createFromParcel(Parcel in) {
			return new DateData(in);
		}

		public DateData[] newArray(int size) {
			return new DateData[size];
		}
	};
}
